package com.chen.project.white_jotter.service.admin;

import com.chen.project.white_jotter.mapper.AdminRoleMenuMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleMenuService {

    @Resource
    private AdminRoleMenuMapper adminRoleMenuMapper;

    public List<Integer> getAllMenusByRolesId(Integer rolesId){
        return adminRoleMenuMapper.selectAllMenusIdByRolesId(rolesId);
    }
}
